<template>
  <div class="upload-contianer">
    <div>
      <span>导入步骤：</span>
      <ol>
        <li class="step-desc">
          <el-button type="text" @click="down">下载模板文件</el-button>
        </li>
        <li class="step-desc">
          打开模板文件，完成内容填写。
        </li>
        <li class="step-desc">
          点击或将文件拖拽到上传区域进行上传。
        </li>
      </ol>
      <el-upload
        class="upload-demo"
        drag
        action="https://jsonplaceholder.typicode.com/posts/"
        multiple
      >
        <i class="el-icon-upload" />
        <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
      </el-upload>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Uplaod',
  props: {

  },
  data() {
    return {
      filterText: ''
    }
  },
  created() {

  },
  methods: {
    down() {
      this.$emit('down')
    }
  }
}
</script>

<style scoped>
.upload-contianer {
    padding: 0 40px
}
.step-desc {
    line-height: 26px;
    font-size: 14px;
}
</style>
